package com.sjw.springbootmodule.web.Controller;

import com.sjw.springbootmodule.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sjw
 * @className homeController
 * @date 2022/8/11 18:34
 * @description: TODO
 */
@RestController
@RequestMapping("/home")
public class HomeController {
    @GetMapping("/hello")
    public User hello() {
        User user = new User();
        user.setId(1);
        user.setName("你好");
        return user;
    }
}
